package server.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import server.model.entity.FrmRole;
import server.model.entity.UserBlance;
import server.model.entity.Users;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

/**
 * 创建人:    xvzhe
 * 创建时间:
 * 修改时间:
 * 版本:      v1.0
 */
@Data
public class UsersAdDto {
    private String id;

    private String name;

    private String password;

    private String userName;

    private String mobile;


    private Boolean status;

    private String type;

    private FrmRole role;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date modifiedTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private String parentId;

    private String parentName;

    private String tree;

    private Integer treeNum;

    private Users.Grade grade;

    private Integer inviteNum;

    private Integer performance;

    private Integer selfPerformance;

    private List<UserBlance> userBlances;

    private Boolean active;
}
